package org.javaweb.filter;

import javax.servlet.*;
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 这个用来测试重复过滤地址的效果
 * Created by Administrator on 2016/12/20.
 */
public class ReqResFilter2 implements Filter {
    @Override
    public void init(FilterConfig filterConfig) throws ServletException {

    }

    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        System.out.println("ReqResFilter2执行前");
        filterChain.doFilter(servletRequest, servletResponse);
        System.out.println("ReqResFilter2执行后");
    }

    @Override
    public void destroy() {

    }
}
